package com.slkj.mapper;

import com.slkj.entity.CityNode;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface CityNodeMapper {

    @Insert("INSERT INTO city_node(begintime,endtime, content,material,c_id) VALUES(#{beginTime},#{endTime},#{content},#{material},#{cid}) ")
    //设置自增主键
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    public int insert(CityNode cityNode);
}
